package com.sxt.bus.controller;


import java.util.List;

import com.sxt.springcloud.bus.OutportClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import com.sxt.bus.vo.OutportVo;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 老雷
 * @since 2019-09-28
 */
@RestController
@RequestMapping("outport")
public class OutportController {

    @Autowired
    private OutportClientService outportClientService;


    /**
     * 查询
     */
    @RequestMapping("loadAllOutport")
    public DataGridView loadAllOutport(OutportVo outportVo) {
        return this.outportClientService.loadAllOutport(outportVo);
    }

    /**
     * 添加退货信息
     */
    @RequestMapping("addOutport")
    public ResultObj addOutport(Integer id,Integer number,String remark){
        return this.outportClientService.addOutport(id,number,remark);
    }
}

